﻿namespace ShopManagement.Common
{
    public static class Constants
    {
        public const string ResourceFileName = "ShopManagement.Common.MyResource.resx";
        public const string AccessProvider = "Microsoft.ACE.OLEDB.12.0";
        public const string AccessFileName = "Setting\\LynnShop.accdb";
        public const string AFolder = "San_Pham\\Ao\\";
        public const string QFolder = "San_Pham\\Quan\\";
        public const string GFolder = "San_Pham\\Giay\\";
        public const string PFolder = "San_Pham\\Phu_Kien\\";
        public const string AccessConnectionString = @"Provider={0};Data Source={1};Jet OLEDB:Database Password={2}";
        public const string SettingFileName = "Setting\\Setting.xml";
        public const string RootNode = "/mySetting";
        public const string PassWord = "LynnShop";
        public const string ReportFolder = "Report\\";
        public const string ReportFileName = "Result_{0}.txt";

        public static class CommonLetter
        {
            public const string SlashString = "\\";
        }

        public static class Messages
        {
            public const string WrongAccPass = "Sai Thông Tin Đăng Nhập!";
            public const string ResultTitle = "Thống Kê Trong Khoảng Từ {0} Đến {1} .";
            public const string ErrorCaption = "Lỗi";
            public const string LynnShopDbError = "Thiếu file LynnShop.accdb";
        }

        public static class SearchMode
        {
            public const int Name = 0;
            public const int Code = 1;
            public const int Price = 2;
        }

        public static int RoleAdmin = 1;
        public static int RoleUser = 0;

        public static class OrderStatus
        {
            public const string New = "Đơn Hàng Mới";
            public const string Done = "Đã Hoàn Thành";
            public const string Cancel = "Đã Hủy";
        }

        public const string FullYearToDate = "yyyy/MM/dd";
        public const string FullYearToSecond = "yyyy/MM/dd HH:mm:ss";
        public const string FileNameDateFormat = "yyyyMMdd_HH_mm_ss";
    }
}
